package com.xspace.android.imcommon.http;

public interface NetworkListener {

	public void action(int actionCode, Object object);

	/**
	 * 协议返回码，-1表示失败
	 */
	public static final int PROTOCOL_FAILURE = -1;

	/**
	 * 协议返回码，0表示成功
	 */
	public static final int PROTOCOL_SUCCESS = 0;

	static final int BASE = 0x100;

	/**
	 * 网络连接的状态码事件-getResponseCode()
	 */
	public static final int RESPONSE_CODE = BASE + 1;
	/**
	 * 联网返回数据处理
	 */
	public static final int RECEIVE_STREAM = BASE + 2;
	/**
	 * 手机是否已经联网
	 */
	public static final int APN_NOTEXIST = BASE + 3;
	/**
	 * 网络连接超时
	 */
	public static final int REQUEST_TIMEOUT = BASE + 4;

	/**
	 * 网络连接流异常
	 * */
	public static final int STREM_EXCEPTION = BASE + 5;
}
